<template>
  <div class="serverSetup br bx">

    <div class="serverSetup_title">服务器设置</div>
    <div class="serverSetup_li">
      <span class="importentIcon">服务器地址：</span>
      <div class="chooseBox  paddingInput w509 bx">
        <input type="text" v-model="serverSetupData.server_ip">
      </div>
      <span class="importentIcon">服务器端口：</span>
      <div class="chooseBox  paddingInput w509 bx">
        <input type="text" v-model="serverSetupData.server_ip">
      </div>
    </div>
    <!-- <div class="common_title_btn" @click="pushData">保存</div> -->
    <el-button type="primary" class="common_title_btn" :loading="loadingFlag" @click="pushData">保存</el-button>
  </div>
</template>

<script>
  import {
    http
  } from "../../../api/config";

  export default {
    name: 'serverSetup',
    data() {
      return {
        loadingFlag: false,
        serverSetupData: {
          school_name: '',
          server_ip: '',
          signin_end: '',
          signin_start: '',
          signout_end: '',
          signout_start: '',
          warning_ip: '',
          week_start: '0'
        }
      }
    },
    methods: {
      getData() { //获取数据
        let _this = this;


      },
      pushData() {
        var _this = this;
        _this.loadingFlag = true; //加载按钮阀门

      },

    },


    beforeRouteEnter(to, from, next) {
      //传给父组建值

      next(vm => {
        vm.$emit('pageName', to.name)
      });


    }
  }

</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
  .serverSetup {
    background: #fff;
    width: 100%;
    height: 100%;
    padding: 32px 70px;
    overflow: auto;
    position: relative;

  }

  .common_title_btn {
    display: inline-block;
    left: 0;
    bottom: 0;


  }

  .importentIcon {
    position: relative;
    margin-left: 30px;
  }

  .importentIcon::before {
    content: '';
    width: 14px;
    height: 14px;
    position: absolute;
    left: -24px;
    top: 50%;
    transform: translateY(-50%);
    background: url('../../../../static/images/importent.png');
  }

  .serverSetup_title {
    line-height: 86px;
    color: #636363;
    font-size: 22px;
    text-align: left;
  }

  .serverSetup_li {
    display: flex;
    align-items: center;
    line-height: 64px;
    height: 64px;
  }

  .title {
    height: 34px;
    line-height: 34px;
    margin-right: 40px;
  }

  .chooseBox {
    border: 1px solid #d2d2d2;
    height: 30px;
    line-height: 30px;
    border-radius: 18px;
    position: relative;
  }

  .time {
    margin: 0 20px;
    width: 216px;
  }

  .w509 {
    width: 509px;
  }

  .chooseBox.time::after {
    content: '';
    width: 22px;
    height: 22px;
    position: absolute;
    right: 6px;
    background: url('../../../../static/images/time.png');
    top: 50%;
    transform: translateY(-50%);
  }

</style>
